import { domainService } from '~/config/server'
import { NetService } from '~/utils/net.service'
import { Inject, Debounce } from "~/core/decorator";

export class CallCenterService {

  @Inject(NetService)
  private netService: NetService

  /**
   * 外呼
   */
  @Debounce()
  public callOut(data) {
    return this.netService.send({
      server: domainService.callCenterController.callOut,
      data
    })
  }
  /**
   * 试听录音
   */
  @Debounce()
  public auditionRecording(data){
      return this.netService.send({
          server:domainService.callCenterController.auditionRecording,
          data
      })
  }
  /**
   * 下载录音
   */
  @Debounce()
  public uploadRecordUrl(data){
      return this.netService.send({
          server:domainService.callCenterController.uploadRecordUrl,
          data
      })
  }
}
